package com.sp.common.code;


public class CodeGenerator {
    public static void main(String[] args) {
        MybatisPlusCodeGenerator codeGenerator = new MybatisPlusCodeGenerator();
//
//        codeGenerator.DB_URL = "jdbc:mysql://43.139.38.97:3306/scoot?useSSL=false";
//        codeGenerator.DB_USER_NAME = "root";
//        codeGenerator.DB_PASSWORD = "Xiongxuelin@123";


        codeGenerator.DB_URL = "jdbc:mysql://127.0.0.1:3306/user-info?useSSL=false";
        codeGenerator.DB_USER_NAME = "root";
        codeGenerator.DB_PASSWORD = "root";

        codeGenerator.TABLE_PREFIX = new String[] {"SYS"};
        codeGenerator.PACKAGE_PARENT = "com.app.common.code";
        codeGenerator.TEMP_DIR = "temp";
        String[] hbTabls ="SYS_USER_WEIXIN_INFO".split(",");
        codeGenerator.INCLUDES = hbTabls;

        try {
            codeGenerator.generateCode();
        }catch (Exception e){

            e.printStackTrace();
        }
    }
}
